package cn.jinjimi.app.managers.task;

/**
 * Created by lforxeverc on 2016/10/31.
 */

public abstract class BaseTask implements ITask {
    enum TaskStatus {
        Running, Pending, Cancel, End
    }

    private boolean mExecuteAuto = true;
    private TaskStatus mTaskStatus = TaskStatus.Pending;

    public abstract String poolName();

    public int id() {
        return 0;
    }

    public void setExecuteAuto(boolean mExecuteAuto) {
        this.mExecuteAuto = mExecuteAuto;
    }

    public boolean isExecuteAuto() {
        return mExecuteAuto;
    }

    public TaskStatus getTaskStatus() {
        return mTaskStatus;
    }

    public void setTaskStatus(TaskStatus mTaskStatus) {
        this.mTaskStatus = mTaskStatus;
    }
}
